using System;
using System.Collections.Generic;
using System.Text;

namespace Mud.Common.Messages
{

	/// <summary>
	/// All classes in the Mud.Common namespace which have this attribute applied to them will be created
	/// by the MessageFactory when it is requested to handle a deserialized message of a certain type.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
	public class MessageAttribute : Attribute
	{

		public MessageTypeIds MessagetTypeId {
			get { return _messageTypeId; }
		}
		private MessageTypeIds _messageTypeId;



		public MessageAttribute(MessageTypeIds type) {
			_messageTypeId = type;
		}

	}
}
